<?
class ObjArmaMordida extends ObjArmaNatural {
	
	function __construct () {
		$d20 = new Dado(20);
		$d6 = new Dado(6);
		$ataque = $d20->lancar(1, 5);
		$dano = $d6->lancar(1, 4);
		$critical = array(2, 0);
		
		parent::__construct('mordida', 'f', '', '', 0, $ataque, $dano, $critical);
		
		//$this->danoTipos->adiciona('piercing');
		//$this->danoTipos->adiciona('slashing');
		$this->danoTipos->adiciona('bludgeoning');
		
		}
	
	public function attack_roll() {
		$d20 = new Dado(20);
		return $d20->lancar(1, 5);
	}
	
	public function damage_roll() {
		$d6 = new Dado(6);
		return $d6->lancar(1, 4);
	}
	
	public function toArray() {
		return $this->data;
	}
}
?>